<script type="text/javascript">
//trigger parent row quantity onblur
$("#salesOrderDetailList tr[childs]").each(function(){
	$(this).toggle(
		function () {
			var childs = $(this).attr("childs")
			$(this).find("td:first").attr("rowspan", 1)
			$("tr[parent="+childs+"]").hide()
		},
		function () {
			var childs = $(this).attr("childs")
			var rowspan = $("tr[parent="+childs+"]").size() + 1
			$(this).find("td:first").attr("rowspan", rowspan)
			$("tr[parent="+childs+"]").show()
		}
	);
	var childs = $(this).attr("childs")
	$(this).find("td:first").attr("rowspan", 1)
	$("tr[parent="+childs+"]").hide()
})	
</script>
